#!/bin/bash
# 测试 Shell 连接 MySQL
connmsg=`mysql -uroot -pshadow <<EOF
  use test;
  select * from test2;
  exit
EOF`
echo connmsg:"$connmsg"

